package com.fushenlan.epidemicControl.service;

import com.fushenlan.Vo.NeighborhoodIndoVo;
import com.fushenlan.epidemicControl.dto.NeighborhoodInfoDto;
import com.fushenlan.po.NeighborhoodInfo;

import java.util.List;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.epidemicControl.service
 * @VERSION 1.0
 */
public interface NeighborhoodInfoService {

    List<NeighborhoodIndoVo> getNeighborList(NeighborhoodInfoDto neighborhoodInfoDto);

    int addNeighbor(NeighborhoodInfoDto neighborhoodInfoDto);

    int deleteNeighbor(Integer id);

    // TODO: 2022/4/21 复用原有的分页工具类，但性能不足  因时间关系， 该方案后期再优化
    List<NeighborhoodIndoVo> getNeighborListByPage(int pageNo, int pageSize, List<NeighborhoodInfo> neighborhoodInfos);

    int updateNeighbor(NeighborhoodInfoDto neighborhoodInfoDto);

    List<NeighborhoodInfo> findNeighborList(NeighborhoodInfo neighborhoodInfo);
}
